<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        input {
            outline: none;
            border: none;
        }

        form {
            width: 600px;
            margin: 20px auto;
        }

        form fieldset {
            padding: 10px;
        }

        form fieldset input ,form fieldset meter {
            width: 100%;
            height: 40px;
            line-height: 40px;
            margin: 10px auto;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            padding-left: 5px;
            box-sizing: border-box;
        }
        form fieldset meter{
            padding-left: 5px;
        }
    </style>
</head>

<body>
    <form action="action">
        <fieldset>
            <legend>学生档案</legend>
            <label for="userName">姓名:</label>
            <input type="text" name="userName" id="userName" placeholder="请输入用户名">

            <label for="userPhone">手机号码:</label>
            <input type="tel" name="userPhone" id="userPhone" pattern="^1\d{10}$" autocomplete="off">

            <label for="email">邮箱地址:</label>
            <input type="email" required name="email" id="email">

            <label for="collage">所属学院:</label>
            <input type="text" name="collage" id="collage" list="cList" placeholder="请选择">
            <datalist id="cList">
                <option value="h5"></option>
                <option value="java"></option>
                <option value="javascript"></option>
                <option value="ui"></option>
                <option value="嵌入式"></option>
                <option value="php"></option>
                <option value="phthon"></option>
            </datalist>

            <label for="score">入学成绩:</label>
            <input type="number" max="100" min="0" value="0" id="score">

            <label for="level">基础水平:</label>
            <meter id="level" max="100" min="0" low="59" high="90"></meter>

            <label for="inTime">入学日期:</label>
            <input type="date" id="inTime" name="inTime">
            
            <label for="leaveTime">毕业日期:</label>
            <input type="date" id="leaveTime" name="leaveTime">

            <input type="submit">
        </fieldset>
    </form>
    <script>
        document.getElementById("score").oninput=function(){
            document.getElementById("level").value=this.value;
        }
    </script>
</body>

</html>